module.exports = () => {
    return async (ctx,next) => {
        if(ctx.request.method === 'GET'){
            ctx.request.getParams = ctx.query;
        }else if(ctx.request.method === 'POST'){
            ctx.request.postParams = ctx.request.body;
        }
        await next();
    }
}